package com.youhome.service.mapper;

import com.youhome.service.model.BCounselor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BCounselorMapper {
    int deleteByPrimaryKey(Long counselorId);

    int insert(BCounselor record);

    int insertSelective(BCounselor record);

    BCounselor selectByPrimaryKey(Long counselorId);

    BCounselor selectByUserId(Long userId);

    BCounselor selectByUUID(String userId);

    int updateByPrimaryKeySelective(BCounselor record);

    int updateByPrimaryKey(BCounselor record);

    List<BCounselor> selectByBean(BCounselor record);

    List<BCounselor> selectTopByBean(BCounselor record);

    int updateStatusByPrimaryKey(BCounselor record);


    int updateIsTopByPrimaryKey(Long counselorId);

    int updateSortByPrimaryKey(BCounselor record);

    int selectIsTopCountByCompanyId(Long companyId);

    int selectCountByCompanyId(Long companyId);
}